<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[%$lngpack.member_title%] - [%$lngpack.sitename%]</title>
<meta name="keywords" content="[%$lngpack.keyword%]" />
<meta name="description" content="[%$lngpack.description%]" />
<link href="[%$url%]templates/goods/style/tempates_div.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/goods/style/public.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/goods/style/pagebotton.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="[%$url%]js/jquery.js"></script>
<script type="text/javascript" src="[%$url%]js/basicrun.js"></script>
<!--[if IE 6]>
<style type="text/css" media="screen">
body {behavior:url("[%$url%]templates/goods/style/csshover.htc"); }
</style>
<![endif]-->
</head>

<body>
<div class="head">
	[%include file="goods/en/public/head.html"%]
	<!--当前浏览位置-->
	<div class="framecenter">
		<div class="location">[%$lngpack.member_title%]</div>
	</div>
	<!--left-->
	<div class="framecenter margintop8">
		<div style="float:left">
			<!--分类栏目-->
			<div class="tbottonlist">
				<div class="tg">Operating Function  </div>
				<div class="l">[%beark name=memmenu class=$lng%]</div>
			</div>
		</div>
		<!--会员功能显示-->
		[%if $out=='center'%]
		<div style="float:right;">
			<div class="righttext"><div class="ttitle"><h3><span class="font03 strong colorgreg">[%$member.username%]</span>Member Center Sign Welcome</h3></div></div>
			<div class="righttext margintop8 center">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="30%">The time of your last login</td>
						<td class="td02 left"><span class="font05 colorgorning">[%$member.lasttime|timeformat(3)%]</span></td>
					</tr>
					<tr>
						<td class="td02 right">Your last visit of the IP is:</td>
						<td class="td02 left"><span class="font05 colorgorning">[%$member.lastip|ip(0)%]</span></td>
					</tr>
					<tr>
						<td class="td02 right">Your membership grade:</td>
						<td class="td02 left"><span class="font05 colorgorning">[%$member.rankname%]</span></td>
					</tr>
					<tr>
						<td class="td02 right">Your membership points are:</td>
						<td class="td02 left"><span class="font05 colorgorning">[%$member.integral%]</span></td>
					</tr>
					<tr>
						<td class="td02 right">Your login number is:</td>
						<td class="td02 left"><span class="font05 colorgorning">[%$member.visitcount%]</span></td>
					</tr>
					<tr>
						<td class="td02 right">You can operate:</td>
						<td class="td02 left">
							<a class="infolink02" href="[%$mlink.memedit_info%]">My Profile</a>
							<a class="infolink02" href="[%$mlink.memedit_password%]">Change password</a>
							<a class="infolink02" href="[%$mlink.quit%]">Logout</a>
						</td>
					</tr>
				</table>
			</div>
			<div class="righttext margintop8 "><div class="ttitle"><h3>Order Tips</h3></div></div>
			<div class="righttext margintop8 center">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 center">Your site submitted a total of <u>[%$ordernum%]</u> set <span class="colorgreg centertext">You have <u>[%$ordernum3%]</u> orders have been shipped</span> <span class="paddingleft"><a class="infolink05" href="[%$mlink.orderlist%]">Click to view order list</a></span></td>
					</tr>
				</table>
			</div>
		</div>
		[%elseif $out=='editinfo'%]
		<script type="text/javascript" src="[%$url%]js/ajax_city.js"></script>
		<script type="text/javascript">
		$(function() {
		    sec_cityone('[%$member.country%]','[%$member.province%]');
		    sec_citytwo('[%$member.province%]','[%$member.city%]');
		    sec_district('[%$member.city%]','[%$member.district%]');
		});
		var citytwo_title = "[%$lngpack.citytwo_title%]";
		var citythree_title = "[%$lngpack.citythree_title%]";
		var district_title = "[%$lngpack.district_title%]";
		var birthday_empty = "[%$lngpack.birthday_empty%]";
		var zipcode_empty = "[%$lngpack.zipcode_empty%]";
		var qq_empty = "[%$lngpack.qq_empty%]";
		</script>
		<div style="float:right;">
			<div class="righttext"><div class="ttitle"><h3>My Profile</h3></div></div>
			<div class="righttext margintop8 center">
				<form name="editmember" id="editmember" method="post" action="[%$mlink.membersave%]" onsubmit="return editinfo()">
				<input type="hidden" name="upurl" value="[%$upurl%]">
				<input type="hidden" name="inputclass" value="editinfo">
				<input type="hidden" name="userid" value="[%$member.userid%]">
				<input type="hidden" name="username" value="[%$member.username%]">
				<input type="hidden" name="email" value="[%$member.email%]">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">Username：</td>
						<td class="td02 left"><u>[%$member.username%]</u></td>
					</tr>
					<tr>
						<td class="td02 right">E-mail：</td>
						<td class="td02 left"><u>[%$member.email%]</u></td>
					</tr>
					<tr>
						<td class="td02 right">Name：</td>
						<td class="td02 left"><input type="text" name="alias" value="[%$member.alias%]" maxlength="50" size="30" class="infoInput"></td>
					</tr>
					<tr>
						<td class="td02 right">Sex：</td>
						<td class="td02 left">
						<input type="radio" value="1" name="sex" [%if $member.sex==1%]checked[%/if%]> Male&nbsp;
						<input type="radio" value="0" name="sex" [%if $member.sex==0%]checked[%/if%]> Female
						</td>
					</tr>
					<tr>
						<td class="td02 right">Birthday：</td>
						<td class="td02 left"><input type="text" name="birthday" value="[%$member.birthday|timeformat(2)%]" maxlength="100" class="infoInput" size="20"> <span>Format :0000-00-00</span></td>
					</tr>
					<tr>
						<td class="td02 right">Region：</td>
						<td class="td02 left">
							<select size="1" name="cityone" class="select" id="cityone">
								<option value="0" [%if $read.country==0%]selected[%/if%]>Country</option>
								<option value="1" [%if $read.country==1%]selected[%/if%]>CHINA</option>
							</select>
							<select size="1" name="citytwo" class="select" id="citytwo">
								<option selected value="0">Province</option>
							</select>
							<select size="1" name="citythree" class="select" id="citythree">
								<option selected value="0">City</option>
							</select>
							<select size="1" name="district" class="select" id="district">
								<option selected value="0">Region</option>
							</select>
							<span id="loading">Loading</span>
						</td>
					</tr>
					<tr>
						<td class="td02 right">Address：</td>
						<td class="td02 left"><input type="text" name="address" value="[%$member.address%]" maxlength="120" size="60" class="infoInput" ></td>
					</tr>
					<tr>
						<td class="td02 right">Zipcode：</td>
						<td class="td02 left"><input type="text" name="zipcode" value="[%$member.zipcode%]" maxlength="10" size="10" class="infoInput"></td>
					</tr>
					<tr>
						<td class="td02 right">TEL：</td>
						<td class="td02 left"><input type="text" name="tel" value="[%$member.tel%]" maxlength="20" size="18" class="infoInput"></td>
					</tr>
					<tr>
					    <td class="td02 right">Mobile</td>
					    <td class="td02 left"><input type="text" name="mobile" value="[%$member.mobile%]" maxlength="20" size="18" class="infoInput"></td>
					</tr>
					<tr>
					    <td class="td02 right">MSM</td>
					    <td class="td02 left"><input type="text" name="msn" value="[%$member.msn%]" maxlength="50" size="30" class="infoInput"></td>
					</tr>
					<tr>
					    <td class="td02 right">QQ</td>
					    <td class="td02 left"><input type="text" name="qq" value="[%$member.qq%]" maxlength="10" size="15" class="infoInput"></td>
					</tr>
					[%forlist from=$attrread key=i%]
					[%if $attrread[i].isline==1%]
					<tr>
						<td colspan="2" class="td02 left">[%$attrread[i].typename%]</td>
					</tr>
					[%else%]
					<tr>
						<td class="td02 right">[%$attrread[i].typename%]</td>
						<td class="td02 left">
						[%if $attrread[i].inputtype=='string'%]<input type="text"[%if$attrread[i].isvalidate==1%] onblur="if (this.value.match(/^[%$attrread[i].validatetext%]$/ig)==null){alert('[%$attrread[i].typename%][%$ST.input_err%]');return false;}" [%/if%]name="memberatt[[%$attrread[i].attrname%]]" size="[%$attrread[i].attrsize%]" maxlength="[%$attrread[i].attrlenther%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>[%/if%]
						[%if $attrread[i].inputtype=='int'%]<input type="text" [%if$attrread[i].isvalidate==1%] onblur="if (this.value.match(/^[%$attrread[i].validatetext%]$/ig)==null){alert('[%$attrread[i].typename%][%$ST.input_err%]');return false;}" [%/if%]name="memberatt[[%$attrread[i].attrname%]]" size="[%$attrread[i].attrsize%]" maxlength="[%$attrread[i].attrlenther%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>[%/if%]
						[%if $attrread[i].inputtype=='datetime'%]
							<input type="text" id="dataselect" name="memberatt[[%$attrread[i].attrname%]]" size="[%$attrread[i].attrsize%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>
						[%/if%]
						[%if $attrread[i].inputtype=='img'%]
							<input type="text" [%if$attrread[i].isvalidate==1%] onblur="if (this.value.match(/^[%$attrread[i].validatetext%]$/ig)==null){alert('[%$attrread[i].typename%][%$ST.input_err%]');return false;}" [%/if%]name="memberatt[[%$attrread[i].attrname%]]" id="[%$attrread[i].attrname%]" size="[%$attrread[i].attrsize%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>
							<a class="filecheck" onclick="javascript:windowsdig('[%$ST.filemanage_select_title%]','iframe:index.php?archive=filemanage&action=filemanage&listfunction=filelist&filetype=img&checkfrom=input&fileinputid=[%$attrread[i].attrname%]','900px','480px','iframe')" href="#body">[%$ST.selectfile_botton%]</a>
						[%/if%]
						[%if $attrread[i].inputtype=='addon'%]
							<input type="text" name="memberatt[[%$attrread[i].attrname%]]" id="[%$attrread[i].attrname%]" size="[%$attrread[i].attrsize%]" value="[%$attrread[i].attrvalue%]" class="infoInput"/>
							<a class="filecheck" onclick="javascript:windowsdig('[%$ST.filemanage_select_title%]','iframe:index.php?archive=filemanage&action=filemanage&listfunction=filelist&filetype=img&checkfrom=input&fileinputid=[%$attrread[i].attrname%]','900px','480px','iframe')" href="#body">[%$ST.selectfile_botton%]</a>
						[%/if%]
						[%if $attrread[i].inputtype=='text'%]<textarea name="memberatt[[%$attrread[i].attrname%]]" cols="[%$attrread[i].attrsize%]" rows="[%$attrread[i].attrrow%]" class="infoInput">[%$attrread[i].attrvalue%]</textarea>[%/if%]
						[%if $attrread[i].inputtype=='select'%]
							<select size="1" name="memberatt[[%$attrread[i].attrname%]]">
							[%forlist from=$attrread[i].attrvalue key=ii%]
								<option [%if $attrread[i].attrvalue[ii].selected=='selected'%]selected="selected" [%/if%]value="[%$attrread[i].attrvalue[ii].name%]">[%$attrread[i].attrvalue[ii].name%]</option>
							[%/forlist%]
							</select>
						[%/if%]
						[%if $attrread[i].inputtype=='radio'%]
							[%forlist from=$attrread[i].attrvalue key=ii%]
							<input [%if $attrread[i].attrvalue[ii].selected=='selected'%]checked="checked" [%/if%]name="memberatt[[%$attrread[i].attrname%]]" type="radio" value="[%$attrread[i].attrvalue[ii].name%]" /> [%$attrread[i].attrvalue[ii].name%]
							[%/forlist%]
						[%/if%]
						[%if $attrread[i].inputtype=='checkbox'%]
							[%forlist from=$attrread[i].attrvalue key=ii%]
								<input [%if $attrread[i].attrvalue[ii].selected=='selected'%]checked="checked" [%/if%]name="memberatt[[%$attrread[i].attrname%]][]" type="checkbox" value="[%$attrread[i].attrvalue[ii].name%]" /> [%$attrread[i].attrvalue[ii].name%]
							[%/forlist%]
						[%/if%]
						[%if $attrread[i].attrcue!=''%]<span class="cautiontitle">[%$attrread[i].attrcue%]</span>[%/if%]
						</td>
					</tr>
					[%/if%]
					[%/forlist%]
					<tr>
						<td class="td02 center" colspan="2" style="height:50px;line-height:50px;">
							<input name="submit" type="submit" class="buttonface" value="Submit"/>
						</td>
					</tr>
				</table>
				</form>
			</div>
		</div>
		[%elseif $out=='editpassword'%]
		<script type="text/javascript" src="[%$url%]js/passcheck.js"></script>
		<script type="text/javascript">
			var oldpassword_err = "[%$lngpack.oldpassword_err%]";
			var password_len = "[%$lngpack.password_err%]";
			var password_len2 = "[%$lngpack.password_len2%]";
			var password2_empty = "[%$lngpack.password2_err%]";
			var password_disaffinity = "[%$lngpack.password_equal%]";

			var password_err1 = "[%$lngpack.password_err1%]";
			var password_err2 = "[%$lngpack.password_err2%]";
			var password_err3 = "[%$lngpack.password_err3%]";
			var password_err4 = "[%$lngpack.password_err4%]";
			var password_err5 = "[%$lngpack.password_err5%]";
			$(document).ready(function(){
				$('#password').ESPpasscheck({
					verdects:[password_err1,password_err2,password_err3,password_err4,password_err5]
				});
			})
		</script>
		<div style="float:right;">
			<div class="righttext"><div class="ttitle"><h3>Password changes</h3></div></div>
			<div class="righttext margintop8 center">
				<form name="editmember" id="editmember" method="post" action="[%$mlink.membersave%]" onsubmit="return editpassword()">
				<input type="hidden" name="upurl" value="[%$upurl%]">
				<input type="hidden" name="inputclass" value="editpassword">
				<input type="hidden" name="userid" value="[%$member.userid%]">
				<input type="hidden" name="username" value="[%$member.username%]">
				<input type="hidden" name="email" value="[%$member.email%]">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">Username：</td>
						<td class="td02 left"><u>[%$member.username%]</u></td>
					</tr>
					<tr>
						<td class="td02 right">E-mail：</td>
						<td class="td02 left"><u>[%$member.email%]</u></td>
					</tr>
					<tr>
						<td class="td02 right">Old Password：</td>
						<td class="td02 left">
							<input type="password" name="oldpassword" id="oldpassword" size="18" maxlength="15" class="infoInput"/>
						</td>
					</tr>
					<tr>
						<td class="td02 right">New Password：</td>
						<td class="td02 left">
							<input type="password" name="password" id="password" size="18" maxlength="15" class="infoInput"/>  <span>5-15 characters, including letters, Chinese, numbers, underscores</span>
						</td>
					</tr>
					<tr>
						<td class="td02 right"></td>
						<td class="td02 left"><span id="passlist"></span></td>
					</tr>
					<tr>
						<td class="td02 right">Repeat new password：</td>
						<td class="td02 left"><input type="password" name="password2" id="password2" size="18" maxlength="15"  class="infoInput"/></td>
					</tr>
					<tr>
						<td class="td02 center" colspan="2" style="height:50px;line-height:50px;">
							<input name="submit" type="submit" class="buttonface" value="Change Password"/>
						</td>
					</tr>
				</table>
				</form>
			</div>
		</div>
		[%elseif $out=='editemail'%]
		<script type="text/javascript">
			var password_len = "[%$lngpack.password_err%]";
			var email_match = "[%$lngpack.email_err%]";
		</script>
		<div style="float:right;">
			<div class="righttext"><div class="ttitle"><h3>E-mail changes</h3></div></div>
			<div class="righttext margintop8 center">
				<form name="editmember" id="editmember" method="post" action="[%$mlink.membersave%]" onsubmit="return editmail()">
				<input type="hidden" name="upurl" value="[%$upurl%]">
				<input type="hidden" name="inputclass" value="editmail">
				<input type="hidden" name="userid" value="[%$member.userid%]">
				<input type="hidden" name="username" value="[%$member.username%]">
				<input type="hidden" name="email" value="[%$member.email%]">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">Username：</td>
						<td class="td02 left"><u>[%$member.username%]</u></td>
					</tr>
					<tr>
						<td class="td02 right">The original e-mail：</td>
						<td class="td02 left"><u>[%$member.email%]</u></td>
					</tr>
					<tr>
						<td class="td02 right">Password：</td>
						<td class="td02 left"><input type="password" name="password" id="password" size="18" maxlength="15" class="infoInput"/></td>
					</tr>
					<tr>
						<td class="td02 right">New E-mail：</td>
						<td class="td02 left"><input type="text" name="email" id="email" size="40" maxlength="100"  class="infoInput" onblur="checktypename('email',this.value,'[%$mlink.checkusername%]','mailmsg','[%$lngpack.mem_regemail_ok%]','[%$lngpack.mem_regemail_no%]','editmailsubmit');" /> <span id="mailmsg"></span></td>
					</tr>
					<tr>
						<td class="td02 center" colspan="2" style="height:50px;line-height:50px;">
							<input name="submit" type="submit" class="buttonface" value="E-mail changes"/>
						</td>
					</tr>
				</table>
				</form>
			</div>
		</div>
		[%elseif $out=='orderlist'%]
		<div style="float:right;">
			<div class="righttext"><div class="ttitle"><h3>Order list</h3></div></div>
			[% if count($array) > 0 %]
			<div class="righttext margintop8 center">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td01">Order No.</td>
						<td class="td01">Orders</td>
						<td class="td01">Order status</td>
						<td class="td01">Order time</td>
						<td class="td01">Operating</td>
					</tr>
					[%forlist from=$array key=i%]
					<tr>
						<td class="td02"><a href="[%$array[i].link%]">[%$array[i].ordersn%]</a></td>
						<td class="td02">[%$moneytype%][%$array[i].orderamount%]</td>
						<td class="td02 colorgreg">[%$array[i].ordertypename%]</td>
						<td class="td02">[%$array[i].addtime|timeformat(4)%]</td>
						<td class="td02">
							<a href="[%$array[i].link%]">View Order</a>
							[%if $array[i].ordertype==1%]<a href="javascript:if (confirm('Are you sure you want to cancel the order?')) location.href='[%$array[i].dlink%]';">Cancel Order</a>[%/if%]
						</td>
					</tr>
					[%/forlist%]
				</table>
			</div>
			<div class="righttext center margintop8">
				<div id="pagelist">[%$pagetext%]</div>
			</div>
			<div class="righttext center margintop8">
				<div id="Pagination" class="pagination">[%$pagebotton%]</div>
			</div>
			[%else%]
			<div class="righttext center margintop8">
				<div id="pagelist">No orders</div>
			</div>
			[%/if%]
		</div>
		[%elseif $out=='orderread'%]
		<script type="text/javascript" src="[%$url%]js/ajax_city.js"></script>
		<script type="text/javascript">
		$(function() {
			sec_cityone('[%$read.country%]','[%$read.province%]');
			sec_citytwo('[%$read.province%]','[%$read.city%]');
			sec_district('[%$read.city%]','[%$read.district%]');
		});
		var citytwo_title = "[%$lngpack.citytwo_title%]";
		var citythree_title = "[%$lngpack.citythree_title%]";
		var district_title = "[%$lngpack.district_title%]";
		var count_city_err = "[%$lngpack.count_city_err%]";
		var address_title = "[%$lngpack.address_title%]";
		var zipcode_empty = "[%$lngpack.zipcode_empty%]";
		var alias_empty = "[%$lngpack.alias_empty%]";
		var email_err = "[%$lngpack.email_err%]";
		var tel_empty = "[%$lngpack.tel_empty%]";
		</script>
		<div style="float:right;">
			<div class="righttext"><div class="ttitle"><h3>Order Basics</h3></div></div>
			<div class="righttext margintop8 center">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">Order No.：</td>
						<td class="td02 left"><u>[%$read.ordersn%]</u></td>
					</tr>
					<tr>
						<td class="td02 right">Order time：</td>
						<td class="td02 left">[%$read.addtime|timeformat(4)%]</td>
					</tr>
					<tr>
						<td class="td02 right">Order status：</td>
						<td class="td02 left">[%$read.ordertypename%]</td>
					</tr>
				</table>
			</div>
			<div class="righttext margintop8 "><div class="ttitle"><h3>Product List</h3></div></div>
			<div class="righttext margintop8 center">
				[% if count($array) > 0 %]
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td01" valign="middle">Product Name</td>
						<td class="td01" valign="middle" align="right">Unit price</td>
						<td class="td01" valign="middle">Quantity</td>
						<td class="td01" valign="middle" align="right">Subtotal</td>
					</tr>
					[%forlist from=$array key=i%]
					<tr>
						<td class="td02"><a target="_blank" href="[%$array[i].link%]">[%$array[i].title%]</a></td>
						<td class="td02" valign="middle" align="right">[%$moneytype%][%$array[i].bprice%]</td>
						<td class="td02 colorgreg" valign="middle">[%$array[i].amount%]</td>
						<td class="td02" align="right">[%$moneytype%][%$array[i].countprice%]</td>
					</tr>
					[%/forlist%]
				</table>
				[%else%]
				<table width="100%" class="tablelist">
					<tr align="center" class="td02"><td valign="middle">No order products or product data does not exist!</td></tr>
				</table>
				[%/if%]
			</div>
			<div class="righttext margintop8 "><div class="ttitle"><h3>The amount and payment</h3></div></div>
			<div class="righttext margintop8 center">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">The total amount of goods：</td>
						<td class="td02 left">[%$moneytype%][%$read.productmoney%]</td>
					</tr>
					<tr>
						<td class="td02 right">Shipping costs：</td>
						<td class="td02 left">[%$moneytype%][%$read.shippingmoney%]</td>
					</tr>
					<tr>
						<td class="td02 right">Discount：</td>
						<td class="td02 left">[%$moneytype%][%$read.discount%]</td>
					</tr>
					<tr>
						<td class="td02 right">Order total：</td>
						<td class="td02 left">The total amount of goods[%$moneytype%][%$read.productmoney%] - Discount[%$moneytype%][%$read.discount%] + Freight[%$moneytype%][%$read.shippingmoney%] + Payment of fees[%$moneytype%][%$read.paymoney%] = Order total[%$moneytype%][%$read.orderamount%]</td>
					</tr>
					<tr>
						<td class="td02 right">Discount：</td>
						<td class="td02 left">[%$read.discount%]</td>
					</tr>
					[%if $read.paytime>0%]
					<tr>
						<td class="td02 right">Payment：</td>
						<td class="td02 left">[%$pay.payname%]</td>
					</tr>
					<tr>
						<td class="td02 right">Payment certificate No.</td>
						<td class="td02 left">[%$read.paysn%]</td>
					</tr>
					<tr>
						<td class="td02 right">Paid time：</td>
						<td class="td02 left">[%$read.paytime|timeformat(4)%]</td>
					</tr>
					[%else%]
					<tr>
						<td class="td02 right">I have to pay.</td>
						<td class="td02 left">[%$orderonline%]</td>
					</tr>
					[%/if%]
				</table>
			</div>
			[%if $read.ordertype==1 || $read.ordertype==2%]
			<div class="righttext margintop8 "><div class="ttitle"><h3>Receiving information changes</h3></div></div>
			<div class="righttext margintop8 center">
				<form name="ordersaveform" method="post" action="[%$mlink.ordereditsave%]" onsubmit="return ordersave()">
				<input type="hidden" name="oid" value="[%$read.oid%]"/>
				<input type="hidden" name="email" value="[%$read.email%]"/>
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">Addressee：</td>
						<td class="td02 left"><input type="text" name="alias" value="[%$read.consignee%]" maxlength="50" size="30" class="infoInput"></td>
					</tr>
					<tr>
						<td class="td02 right">E-mail：</td>
						<td class="td02 left">[%$read.email%]</td>
					</tr>
					<tr>
						<td class="td02 right">Region：</td>
						<td class="td02 left">
							<select size="1" name="cityone" class="select" id="cityone">
								<option value="0" [%if $read.country==0%]selected[%/if%]>Country</option>
								<option value="1" [%if $read.country==1%]selected[%/if%]>CHINA</option>
							</select>
							<select size="1" name="citytwo" class="select" id="citytwo">
								<option selected value="0">Province</option>
							</select>
							<select size="1" name="citythree" class="select" id="citythree">
								<option selected value="0">City</option>
							</select>
							<select size="1" name="district" class="select" id="district">
								<option selected value="0">Region</option>
							</select>
							<span id="loading">Loading</span>
						</td>
					</tr>
					<tr>
						<td class="td02 right">Address：</td>
						<td class="td02 left"><input type="text" name="address" value="[%$read.address%]" maxlength="120" size="60" class="infoInput"></td>
					</tr>
					<tr>
						<td class="td02 right">ZipCode：</td>
						<td class="td02 left"><input type="text" name="zipcode" value="[%$read.zipcode%]" maxlength="10" size="10" class="smallInput"></td>
					</tr>
					<tr>
						<td class="td02 right">TEL：</td>
						<td class="td02 left"><input type="text" name="tel" value="[%$read.tel%]" maxlength="20" size="10" class="smallInput"></td>
					</tr>
					<tr>
						<td class="td02 right">Mobile：</td>
						<td class="td02 left"><input type="text" name="mobile" value="[%$read.mobile%]" maxlength="25" size="15" class="smallInput"></td>
					</tr>
					<tr>
						<td class="td02 right">Delivery time：</td>
						<td class="td02 left">
							<select size="1" name="sendtime" class="select">
							    <option value="1" [%if $read.sendtime==1%]selected[%/if%]>Working day, weekend and holiday delivery available</option>
							    <option value="2" [%if $read.sendtime==2%]selected[%/if%]>Only weekends, holidays and delivery (working days do not send)</option>
							    <option value="3" [%if $read.sendtime==3%]selected[%/if%]>Only working days delivery (weekends, holidays do not send)</option>
							    <option value="4" [%if $read.sendtime==4%]selected[%/if%]>Try to arrange delivery time, please Remarks</option>
							</select>
						</td>
					</tr>
					<tr>
						<td class="td02 right">Delivery mode：</td>
						<td class="td02 left">
						    [%$shiping.title%]
						    [%if $read.shippingtime==0%]
						    <font color="red"><b>No delivery</b></font>
						    [%else%]
						    <font color="#008A00">Has delivery</font>&nbsp;&nbsp;
						    <b>Logistics odd numbers：</b><u>[%$read.shippingsn%]</u>&nbsp;&nbsp;
						    <b>Delivery time：</b><u>[%$read.shippingtime|timeformat(4)%]</u>
						    [%/if%]
						</td>
					</tr>
					<tr>
						<td class="td02 right">Notes：</td>
						<td class="td02 left"><textarea name="content" rows="3" cols="50">[%$read.content%]</textarea></td>
					</tr>
					<tr>
						<td class="td02 right"></td>
						<td class="td02 left"><input name="submit" type="submit" id="submit" class="buttonface" value="Modify"/></td>
					</tr>
				</table>
				</form>
			</div>
			[%else%]
			<div class="righttext margintop8 "><div class="ttitle"><h3>Receiving information</h3></div></div>
			<div class="righttext margintop8 center">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">Consignee：</td>
						<td class="td02 left">[%$read.consignee%]</td>
					</tr>
					<tr>
						<td class="td02 right">E-mail：</td>
						<td class="td02 left">[%$read.email%]</td>
					</tr>
					<tr>
						<td class="td02 right">Region：</td>
						<td class="td02 left">
							<select size="1" name="cityone" class="select" id="cityone" disabled>
								<option value="0" [%if $read.country==0%]selected[%/if%]>Country</option>
								<option value="1" [%if $read.country==1%]selected[%/if%]>CHINA</option>
							</select>
							<select size="1" name="citytwo" class="select" id="citytwo" disabled>
								<option selected value="0">Province</option>
							</select>
							<select size="1" name="citythree" class="select" id="citythree" disabled>
								<option selected value="0">City</option>
							</select>
							<select size="1" name="district" class="select" id="district" disabled>
								<option selected value="0">Region</option>
							</select>
							<span id="loading">Loading</span>
						</td>
					</tr>
					<tr>
						<td class="td02 right">Address：</td>
						<td class="td02 left">[%$read.address%]</td>
					</tr>
					<tr>
						<td class="td02 right">Zipcode：</td>
						<td class="td02 left">[%$read.zipcode%]</td>
					</tr>
					<tr>
						<td class="td02 right">TEL：</td>
						<td class="td02 left">[%$read.tel%]</td>
					</tr>
					<tr>
						<td class="td02 right">Mobile：</td>
						<td class="td02 left">[%$read.mobile%]</td>
					</tr>
					<tr>
						<td class="td02 right">Delivery time：</td>
						<td class="td02 left">
							[%if $read.sendtime==1%]Working day, weekend and holiday delivery available[%/if%]
							[%if $read.sendtime==2%]Only weekends, holidays and delivery (working days do not send)[%/if%]
							[%if $read.sendtime==3%]Working day delivery (weekends, holidays do not send)[%/if%]
							[%if $read.sendtime==4%]Try to arrange delivery time, please Remarks[%/if%]
						</td>
					</tr>
					<tr>
						<td class="td02 right">Delivery mode：</td>
						<td class="td02 left">
						    [%$shiping.title%]
						    [%if $read.shippingtime==0%]
						    <font color="red"><b>No delivery</b></font>
						    [%else%]
						    <font color="#008A00">Has delivery</font>&nbsp;&nbsp;
						    <b>Logistics odd numbers：</b><u>[%$read.shippingsn%]</u>&nbsp;&nbsp;
						    <b>Delivery time：</b><u>[%$read.shippingtime|timeformat(4)%]</u>
						    [%/if%]
						</td>
					</tr>
				</table>
			</div>
			[%/if%]
			<div class="righttext margintop8 "><div class="ttitle"><h3>Other informationn</h3></div></div>
			<div class="righttext margintop8 center">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">Invoice：</td>
						<td class="td02 left">[%$read.invpayee%]</td>
					</tr>
					<tr>
						<td class="td02 right">An invoice：</td>
						<td class="td02 left">[%$read.invcontent%]</td>
					</tr>
					<tr>
						<td class="td02 right">Content：</td>
						<td class="td02 left">[%$read.content%]</td>
					</tr>
					[%if $read.integral>0%]
					<tr>
						<td class="td02 right">The order from points：</td>
						<td class="td02 left">[%$read.integral%]</td>
					</tr>
					[%/if%]
				</table>
			</div>
		</div>
		[%elseif $out=='enquirylist'%]
		<!--询盘列表-->
		<div style="float:right;">
			<div class="righttext"><div class="ttitle"><h3>Enquiries </h3></div></div>
			[% if count($array) > 0 %]
			<div class="righttext margintop8 center">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td01">Number</td>
						<td class="td01">Status</td>
						<td class="td01">Time</td>
						<td class="td01">Operation</td>
					</tr>
					[%forlist from=$array key=i%]
					<tr>
						<td class="td02"><a href="[%$array[i].link%]">[%$array[i].enquirysn%]</a></td>
						<td class="td02 colorgreg">
							[%if $array[i].isclass==0%]
							New
							[%elseif $array[i].isclass==1%]
							Has returned
							[%elseif $array[i].isclass==2%]
							Obsolete
							[%/if%]
						</td>
						<td class="td02">[%$array[i].addtime|timeformat(4)%]</td>
						<td class="td02">
							<a href="[%$array[i].link%]">View</a>
							[%if $array[i].isclass==0%]<a href="javascript:if (confirm('Are you sure you want to cancel the inquiry it?')) location.href='[%$array[i].dlink%]';">Cancel</a>[%/if%]
						</td>
					</tr>
					[%/forlist%]
				</table>
			</div>
			<div class="righttext center margintop8">
				<div id="pagelist">[%$pagetext%]</div>
			</div>
			<div class="righttext center margintop8">
				<div id="Pagination" class="pagination">[%$pagebotton%]</div>
			</div>
			[%else%]
			<div class="righttext center margintop8">
				<div id="pagelist">No information</div>
			</div>
			[%/if%]
		</div>
		[%elseif $out=='enquiryread'%]
		<!--询盘信息-->
		<script type="text/javascript" src="[%$url%]js/ajax_city.js"></script>
		<script type="text/javascript">
		$(function() {
			sec_cityone('[%$read.country%]','[%$read.province%]');
			sec_citytwo('[%$read.province%]','[%$read.city%]');
			sec_district('[%$read.city%]','[%$read.district%]');
		});
		var citytwo_title = "[%$lngpack.citytwo_title%]";
		var citythree_title = "[%$lngpack.citythree_title%]";
		var district_title = "[%$lngpack.district_title%]";
		var count_city_err = "[%$lngpack.count_city_err%]";
		var address_title = "[%$lngpack.address_title%]";
		var zipcode_empty = "[%$lngpack.zipcode_empty%]";
		var alias_empty = "[%$lngpack.alias_empty%]";
		var email_err = "[%$lngpack.email_err%]";
		var tel_empty = "[%$lngpack.tel_empty%]";
		</script>
		<div style="float:right;">
			<div class="righttext"><div class="ttitle"><h3>Basic Information Inquiry</h3></div></div>
			<div class="righttext margintop8 center">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">Number：</td>
						<td class="td02 left"><u>[%$read.enquirysn%]</u></td>
					</tr>
					<tr>
						<td class="td02 right">Time：</td>
						<td class="td02 left">[%$read.addtime|timeformat(4)%]</td>
					</tr>
					<tr>
						<td class="td02 right">Status：</td>
						<td class="td02 left">
							[%if $read.isclass==0%]
							New
							[%elseif $read.isclass==1%]
							Has returned
							[%elseif $read.isclass==2%]
							Obsolete
							[%/if%]
						</td>
					</tr>
				</table>
			</div>
			<div class="righttext margintop8 "><div class="ttitle"><h3>Inquiry Products</h3></div></div>
			<div class="righttext margintop8 center">
				[% if count($array) > 0 %]
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td01" valign="middle">Name</td>
						<td class="td01" valign="middle">Number</td>
						<td class="td01" valign="middle">Amount</td>
					</tr>
					[%forlist from=$array key=i%]
					<tr>
						<td class="td02"><a target="_blank" href="[%$array[i].link%]">[%$array[i].title%]</a></td>
						<td class="td02" valign="middle">[%$array[i].tsn%]</td>
						<td class="td02 colorgreg" valign="middle">[%$array[i].amount%]</td>
					</tr>
					[%/forlist%]
				</table>
				[%else%]
				<table width="100%" class="tablelist">
					<tr align="center" class="td02"><td valign="middle">No consultation session does not exist a product or product data!</td></tr>
				</table>
				[%/if%]
			</div>
			[%if $read.isclass==0%]
			<div class="righttext margintop8 "><div class="ttitle"><h3>Contact Information Change</h3></div></div>
			<div class="righttext margintop8 center">
				<form name="mainform" method="post" action="[%$mlink.enquiryeditsave%]" onsubmit="return enquirysave()">
				<input type="hidden" name="eid" value="[%$read.eid%]"/>
				<input type="hidden" name="email" value="[%$read.email%]"/>
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">Linkman：</td>
						<td class="td02 left"><input type="text" name="linkman" value="[%$read.linkman%]" maxlength="50" size="30" class="infoInput"></td>
					</tr>
					<tr>
						<td class="td02 right">E-mail：</td>
						<td class="td02 left">[%$read.email%]</td>
					</tr>
					<tr>
						<td class="td02 right">Region：</td>
						<td class="td02 left">
							<select size="1" name="cityone" class="select" id="cityone">
								<option value="0" [%if $read.country==0%]selected[%/if%]>Please select a country</option>
								<option value="1" [%if $read.country==1%]selected[%/if%]>China</option>
							</select>
							<select size="1" name="citytwo" class="select" id="citytwo">
								<option selected value="0">Select province</option>
							</select>
							<select size="1" name="citythree" class="select" id="citythree">
								<option selected value="0">Select city</option>
							</select>
							<select size="1" name="district" class="select" id="district">
								<option selected value="0">Select district</option>
							</select>
							<span id="loading">Loading</span>
						</td>
					</tr>
					<tr>
						<td class="td02 right">Address：</td>
						<td class="td02 left"><input type="text" name="address" value="[%$read.address%]" maxlength="120" size="60" class="infoInput"></td>
					</tr>
					<tr>
						<td class="td02 right">Zipcode：</td>
						<td class="td02 left"><input type="text" name="zipcode" value="[%$read.zipcode%]" maxlength="10" size="10" class="smallInput"></td>
					</tr>
					<tr>
						<td class="td02 right">TEL：</td>
						<td class="td02 left"><input type="text" name="tel" value="[%$read.tel%]" maxlength="20" size="30" class="smallInput"></td>
					</tr>
					<tr>
						<td class="td02 right">FAX：</td>
						<td class="td02 left"><input type="text" name="fax" value="[%$read.fax%]" maxlength="20" size="30" class="smallInput"></td>
					</tr>
					<tr>
						<td class="td02 right">Mobile：</td>
						<td class="td02 left"><input type="text" name="mobile" value="[%$read.mobile%]" maxlength="25" size="30" class="smallInput"></td>
					</tr>
					<tr>
						<td class="td02 right">Remarks：</td>
						<td class="td02 left"><textarea name="content" rows="3" cols="50">[%$read.content%]</textarea></td>
					</tr>
					<tr>
						<td class="td02 right"></td>
						<td class="td02 left"><input name="submit" type="submit" id="submit" class="buttonface" value="Submitted" /></td>
					</tr>
				</table>
				</form>
			</div>
			[%else%]
			<div class="righttext margintop8 "><div class="ttitle"><h3>Contact Information</h3></div></div>
			<div class="righttext margintop8 center">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">Linkman：</td>
						<td class="td02 left">[%$read.linkman%]</td>
					</tr>
					<tr>
						<td class="td02 right">E-mail：</td>
						<td class="td02 left">[%$read.email%]</td>
					</tr>
					<tr>
						<td class="td02 right">Region：</td>
						<td class="td02 left">
							<select size="1" name="cityone" class="select" id="cityone" disabled>
								<option value="0" [%if $read.country==0%]selected[%/if%]>Please select a country</option>
								<option value="1" [%if $read.country==1%]selected[%/if%]>China</option>
							</select>
							<select size="1" name="citytwo" class="select" id="citytwo" disabled>
							    <option selected value="0">Select province</option>
							</select>
							<select size="1" name="citythree" class="select" id="citythree" disabled>
							   <option selected value="0">Select city</option>
							</select>
							<select size="1" name="district" class="select" id="district" disabled>
							   <option selected value="0">Select district</option>
							</select>
							<span id="loading">Loading</span>
						</td>
					</tr>
					<tr>
						<td class="td02 right">Address：</td>
						<td class="td02 left">[%$read.address%]</td>
					</tr>
					<tr>
						<td class="td02 right">Zipcode：</td>
						<td class="td02 left">[%$read.zipcode%]</td>
					</tr>
					<tr>
						<td class="td02 right">TEL：</td>
						<td class="td02 left">[%$read.tel%]</td>
					</tr>
					<tr>
						<td class="td02 right">FAX：</td>
						<td class="td02 left">[%$read.fax%]</td>
					</tr>
					<tr>
						<td class="td02 right">Mobile：</td>
						<td class="td02 left">[%$read.mobile%]</td>
					</tr>
					<tr>
						<td class="td02 right">Remarks：</td>
						<td class="td02 left">[%$read.content%]</td>
					</tr>
				</table>
			</div>
			[%if $read.isclass==1%]
			<div class="righttext margintop8 "><div class="ttitle"><h3>Responding to the results</h3></div></div>
			<div class="righttext margintop8 center">
				<table style="width: 100%" class="tablelist">
					<tr>
						<td class="td02 right" width="20%">Reply：</td>
						<td class="td02 left">[%$read.editresult%]</td>
					</tr>
					<tr>
						<td class="td02 right" width="20%">Reply Time：</td>
						<td class="td02 left">[%$read.edittime|timeformat(4)%]</td>
					</tr>
				</table>
			</div>
			[%/if%]
			[%/if%]
		</div>
		[%/if%]
	</div>
	<!--版权声明-->
	[%include file="goods/en/public/fotter.html"%]
</div>

</body>

</html>
